#!/bin/bash

yum -y install net-tools
yum -y install vim
yum -y install lrzsz
yum -y install wget
yum -y install unzip zip
yum -y install lsof
yum -y install telnet
yum -y install ifconfig
yum -y install atop
yum -y install htop


# 备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# 获取阿里云yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
# 获取阿里云epel源
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
# 清理缓存并创建新的缓存
yum clean all && yum makecache

yum install -y iftop

yum install -y yum-utils \
    device-mapper-persistent-data \
    lvm2;

yum-config-manager \
    --add-repo \
    http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo;
